<?php
session_start();
/*$_SESSION['logged'] = 0;
$_SESSION['username'] = '';*/
//垃圾回收机制
unset($_SESSION['logged']);
unset($_SESSION['username']);
unset($_SESSION['admin']);
setcookie('hasLoggedUsername',0,time()-1000);  //设置当前cookie到期时间为现在之前 ，即使其过期
setcookie('isAdmin',0,time()-1000);
//session_destroy();
header("Location:index.php");
?>
